const state = {
    userName: null,
    userEmail: null,
    userId: null,
    AvatarUrl: null,
    userInfo: null,
};

const mutations = {
    upUserName(state, name) {
        state.userName = name
    },
    upUserEmail(state, email) {
        state.userEmail = email
    },
    upUserId(state, id) {
        state.userId = id
    },
    upUserAvatar(state, avatar) {
        state.AvatarUrl = avatar
    },
    upUserInfo(state,userinfo){
        state.userInfo = userinfo
    }

};
export default {
    namespaced: true, // 启用命名空间
    state,
    mutations,
};